package org.com.wlc.proxy;

/**
 * @author 王立朝
 * @description
 * @date 2021-11-22 09:49:09
 */
public class StaticProxyTest {

    public static void main(String[] args) {
        // 目标对象
        Me me = new Me();
        // 代理对象
        MarryManageProxy marrayManageProxy = new MarryManageProxy(me);
        marrayManageProxy.marry();

        // 目标对象
        MeRent meRent = new MeRent();
        // 代理对象
        RentHouseManagerProxy houseManagerProxy = new RentHouseManagerProxy(meRent);
        houseManagerProxy.rentHouse();
    }

}
